import java.awt.BorderLayout;
import java.awt.Label;

import javax.swing.JPanel;
/**
 *
 * 
 * Clasa ProxyDisplay 
 */
public class ProxyDisplay extends JxFrame {
	/**
	 * constructorul clasei ProxyDisplay apeleaza cunstructorul clasei extinse
	 * dupa care afisaza imaginea folosind ImageProxy
	 */
public ProxyDisplay() {
	super("Display proxied image");
	JPanel p = new JPanel();
	getContentPane().add(p);
	p.setLayout(new BorderLayout());
	ImageProxy image = new ImageProxy("puppy.jpg", 550, 400);
	p.add("Center", image);
	p.add("North", new Label(" "));
	p.add("West", new Label(" "));
	setSize(650, 500);
	setVisible(true);
	}
/**
 * 
 * @param args
 *  functia main creeaza un obiect de tip ProxyDisplay
 */
 public static void main(String []args)
 {
	ProxyDisplay ps= new ProxyDisplay();
 }

}